package com.user_hosted_storage.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.user_hosted_storage.dto.GroupDTO.SecurityRole;

/**
 * Entity implementation class for Entity: Group
 *
 */
@Entity
@Table(name="groups")
public class Group implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private long id;
	
	public long getId() {
		return this.id;
	}
	
	@Enumerated(EnumType.STRING)
	private SecurityRole groupName;
	
	private String userName;

	/**
	 * @return the groupName
	 */
	public SecurityRole getGroupName() {
		return groupName;
	}

	/**
	 * @param groupName the groupName to set
	 */
	public void setGroupName(SecurityRole groupName) {
		this.groupName = groupName;
	}

	/**
	 * @return the login
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param login the login to set
	 */
	public void setUserName(String login) {
		this.userName = login;
	}
	   
}
